Create a Script using AI

With the AI-powered script generation capability, you can generate scripts based on natural language prompts, modify existing scripts, and automate script properties.

To create a script using AI,

  1. Navigate to Libraries > Scripting.
  2. On the Scripting page, the Assistant tab to open the script editor assistant.
  3. Click New Chat to create a script using natural language.
  4. To create a new script, type a clear, specific prompt describing the script you want, and click Enter.
    The Assistant analyzes your prompt and displays a plan for the script.
  5. Review the plan and recommended settings populated by the Assistant:
    • Script Name: Auto-generated based on the prompt.
    • Description: Auto generated. It summarizes the script purpose.

      NOTE: For existing scripts, if the description is not added, you can add it by clicking the Generate Description button.

    • Operating System (OS): Selected based on prompt (Windows or macOS).
    • Language: Auto-selected (PowerShell, Bash, and so on).
    • Language Version: Defaults to latest supported version.
    • Execution User Account: Defaults to current user.
    • File Name: Suggested by AI.
    • Dependencies: As specified in the prompt.
      If not adding dependency while creating a script, you can add it later. See Adding Dependencies.
  6. After reviewing the plan, prompt the Assistant to generate the script.
  7. Click Use Script and Apply Settings to insert the generated script and recommended settings.
  8. Review and modify any settings as needed.
  9. Click Save and Publish to publish the script or Save as Draft to save the script as a draft.

NOTE: Points to remember about a Session:

  • New Chat starts a fresh session.
  • History drop-down shows previous sessions for your account.
  • Each session has a unique Conversation ID.
  • Conversation history is user-specific. Other users cannot see your prompts or sessions, even when they open the same script.